{*

--------------------------------------------
---------   Looking to make edits?   -------
--------------------------------------------

You can edit this page without editing this file directly.

For more information about editing your website please refer to our full documentation below:

https://www.zomex.com/docs/wizardpanel/whmcs/

Feel free to contact Zomex if you run into any issues or have any questions.

--------------------------------------------

*}

{if $toolbar_onoff eq "on"}	

	<div class="toolbarmain-container">
	
		<div class="toolbarmain contentcontainer">
	
				<div class="toolbarmain-text">
					{if $toolbar_text_onoff eq "off"}	
					{else}					
						{if $feature_slimmedcart eq "on" && $inShoppingCart && $templatefile neq "domaintransfer" || $templatefile eq "store/order"}
							{if $multilanguagesupport eq "on"}{$LANG.lite_toolbar_text_cart}{else}{$toolbar_text_textcart}{/if}
						{else}
							{if $multilanguagesupport eq "on"}{$LANG.lite_toolbar_text}{else}{$toolbar_text_text}{/if}
						{/if}
					{/if}
				</div><!-- .toolbarmain-text -->
					
			{if $multilanguagesupport eq "google"}
			
				<div class="toolbarmain-googletranslate">
					<div id="google_translate_element"></div>		
				</div><!-- .toolbarmain-googletranslate -->
				
			{/if}
			
			<div class="toolbarmain-menu">
			
				<ul>
			
					{if $multilanguagesupport eq "on" && count($locales) > 1}
						<li class="toolbarmain-menu-language"><a data-toggle="modal" href="#modalChooseLanguage"><div class="d-inline-block"><div class="iti-flag {if $activeLocale.countryCode === 'GB' || $activeLocale.countryCode === '001'}us{else}{$activeLocale.countryCode|lower}{/if}"></div></div>{$activeLocale.localisedName}</a></li>
					{/if}				
					
					{if $feature_quicksetup eq "on" && $currencies}
	                    <li class="toolbarmain-menu-currency">
	                        <a data-toggle="modal" href="#modalChooseLanguage">
	                            {$activeCurrency.prefix}
	                            {$activeCurrency.code}
	                        </a>
	                    </li>
	                {/if}
	
					{if $feature_slimmedcart eq "on" && $inShoppingCart && $templatefile neq "domaintransfer" || $templatefile eq "store/order"}
					
						<li><a href="{$WEB_ROOT}/contact.php"><i class="fas fa-envelope"></i>{$LANG.lite_toolbar_menu_contact}</a></li>	
					
					{else}
			
						{if $loggedin}
						
							{if $clientarea_menu eq "toolbar"}
								<li class="toolbarmain-menu-welcome"><a href="{$WEB_ROOT}/clientarea.php?action=details">{if $client.companyname}{$client.companyname}{else}{$client.fullName}{/if}</a></li>
								<li class="toolbarmain-menu-switchaccount"><a href="{routePath('user-accounts')}" data-toggle="tooltip" data-placement="bottom" title="Switch Account"><i class="fad fa-random"></i></a></li>
							{/if}
							
							{if $clientAlerts|count neq "0" && $clientarea_menu eq "toolbar"}
							
								<li class="toolbarmain-menu-notifications"><a href="javascript:void(0);" data-toggle="popover" id="accountNotifications" data-placement="bottom">{$clientAlerts|count}</a></li>
								
	                            <div id="accountNotificationsContent" class="w-hidden">
	                                <ul class="client-alerts">
	                                {foreach $clientAlerts as $alert}
	                                    <li>
	                                        <a href="{$alert->getLink()}">
	                                            <i class="fas fa-fw fa-{if $alert->getSeverity() == 'danger'}exclamation-circle{elseif $alert->getSeverity() == 'warning'}exclamation-triangle{elseif $alert->getSeverity() == 'info'}info-circle{else}check-circle{/if}"></i>
	                                            <div class="message">{$alert->getMessage()}</div>
	                                        </a>
	                                    </li>
	                                {foreachelse}
	                                    <li class="none">
	                                        {lang key='notificationsnone'}
	                                    </li>
	                                {/foreach}
	                                </ul>
	                            </div>							
								
							{else}
							
							{/if}
						
							<li class="toolbarmain-menu-highlight"><a href="{if $clientarea_menu eq "toolbar"}javascript:void(0);{else}{$WEB_ROOT}/clientarea.php{/if}">{if $LANG.lite_toolbar_menu_account_icon}<i class="{$LANG.lite_toolbar_menu_account_icon}"></i>{/if}{$LANG.lite_toolbar_menu_account}</a>
													
								{if $clientarea_menu eq "toolbar"}
								
									<ul>								
										<li><a href="{$WEB_ROOT}/clientarea.php">{$LANG.lite_toolbar_menu_home}</a></li>
										<li><a href="{$WEB_ROOT}/clientarea.php?action=details">{$LANG.lite_toolbar_menu_details}</a></li>
										<li><a href="{$WEB_ROOT}/index.php?rp=/account/users">{$LANG.lite_toolbar_menu_usermanagement}</a></li>
										<li><a href="{$WEB_ROOT}/index.php?rp=/account/contacts">{$LANG.lite_toolbar_menu_contacts}</a></li>
										<li><a href="{$WEB_ROOT}/clientarea.php?action=emails">{$LANG.lite_toolbar_menu_emails}</a></li>
										<li><a href="{$WEB_ROOT}/index.php?rp=/user/profile">{$LANG.lite_toolbar_menu_profile}</a></li>
										<li><a href="{$WEB_ROOT}/index.php?rp=/user/password">{$LANG.lite_toolbar_menu_password}</a></li>
										<li><a href="{$WEB_ROOT}/index.php?rp=/user/security">Security Settings</a></li>{* Load via lang file *}
										{if $feature_affiliates eq "on"}<li><a href="{$WEB_ROOT}/affiliates.php">{$LANG.lite_toolbar_menu_commissions}</a></li>{/if}
										{if $condlinks.updatecc}<li><a href="{$WEB_ROOT}/clientarea.php?action=creditcard">{$LANG.navmanagecc}</a></li>{/if}
										<li class="toolbarmain-menu-divider">&nbsp;</li>
										<li><a href="{$WEB_ROOT}/clientarea.php?action=invoices">{$LANG.lite_toolbar_menu_invoices}</a></li>
										<li><a href="{$WEB_ROOT}/clientarea.php?action=products">{$LANG.lite_toolbar_menu_orders}</a></li>
										<li><a href="{$WEB_ROOT}/clientarea.php?action=domains">{$LANG.lite_toolbar_menu_domains}</a></li>
										<li><a href="{$WEB_ROOT}/clientarea.php?action=quotes">{$LANG.lite_toolbar_menu_quotes}</a></li>
										<li><a href="{$WEB_ROOT}/supporttickets.php">{$LANG.lite_toolbar_menu_tickets}</a></li>
										{if $condlinks.pmaddon}<li><a href="{$WEB_ROOT}/index.php?m=project_management">{$LANG.clientareaprojects}</a></li>{/if}
									</ul>
									
								{/if}	
							
							</li>	
							
							<li class="toolbarmain-menu-logout"><a href="{$WEB_ROOT}/logout.php" title="{$LANG.lite_toolbar_menu_logout}">{if $LANG.lite_toolbar_menu_logout_icon}<i class="{$LANG.lite_toolbar_menu_logout_icon}"></i>{/if}</a></li>	
						
						{else}		
				
							<li><a href="{$WEB_ROOT}/contact.php">{if $LANG.lite_toolbar_menu_contact_icon}<i class="{$LANG.lite_toolbar_menu_contact_icon}"></i>{/if}{$LANG.lite_toolbar_menu_contact}</a></li>	
							
							<li><a href="{$WEB_ROOT}/cart.php?a=view">{if $LANG.lite_toolbar_menu_cart_icon}<i class="{$LANG.lite_toolbar_menu_cart_icon}"></i>{/if}{$LANG.lite_toolbar_menu_cart} ({$cartitemcount})</a></li>	
						
							<li class="toolbarmain-menu-highlight"><a href="{$WEB_ROOT}/clientarea.php">{if $LANG.lite_toolbar_menu_clientarea_icon}<i class="{$LANG.lite_toolbar_menu_clientarea_icon}"></i>{/if}{$LANG.lite_toolbar_menu_clientarea}</a></li>	
						
						{/if}
					
					{/if}
			
				</ul>
			
			</div><!-- .toolbarmain-menu -->
		
		</div><!-- .toolbarmain -->
	
	</div><!-- .toolbarmain-container -->

{/if}